class Square {
    area : number;
    length : number;
    getarea () : number {
        this.area = this.length * this.length;
        return this.area;
    }
    setlength (value : number) : void {
        this.length = value;
    }
}
let s : Square = new Square ();
s.setlength (6);
console.log (s.getarea ());
class Round {
    length : number;
    constructor (length : number) {
        this.length = length;
    }
    get area () : number {
        let pi : number = 3.1415926;
        return 2 * pi * (this.length / 2);
    }
    set area (value : any) {
        this.length = value;
    }
}
let r : Round = new Round (123);
r.area = 6;
console.log (r.area);
